package com.example.dto;

import java.time.LocalDateTime;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ClassRequest {
    
    @NotBlank(message = "班级名称不能为空")
    @Size(max = 100, message = "班级名称长度不能超过100个字符")
    private String name;
    
    @Size(max = 500, message = "班级描述长度不能超过500个字符")
    private String description;
    
    @Size(max = 100, message = "课程名称长度不能超过100个字符")
    private String course;
    
    @Size(max = 50, message = "年级长度不能超过50个字符")
    private String grade;
    
    private LocalDateTime startDate;
    private LocalDateTime endDate;
    
    private Integer capacity;
} 